
<style>
.affix{top:10px;}
.head-style-list li,.editor-template-list li{cursor: pointer;}
</style>
		<div class="ui-portlet">
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;个人中心</a></li>
			  <li><a href="/questionnaires/mine">我的数据表单</a></li>
			  <li class="active">新增|编辑</li>
			</ol> 
		</div>          
       <hr>
       
       <div class="alert alert-warning">
       	提示：请先设置表单的标题、封面图片以及内容描述，然后再进入表单管理页，设置各表单数据项。
       </div>

{{$this->MForm->create('Questionnaire',array('class'=>'form-horizontal','role'=>'form'))}}
		
	<div class="tab-content">
		
			
		<div role="tabpanel" class="tab-pane active" id="chi-info">
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="QuestionnaireAddress">表单名称</label>
				<div class="col-sm-9 controls">
					{{$this->MForm->hidden('id')}}		
					{{$this->MForm->input('name',array('class'=>'form-control','div'=>false,'label'=>false,))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">表单封面图</label>
				<div class="col-sm-9 controls select">
					{{$this->MForm->swfupload('coverimg',array('modelClass'=>'Questionnaire','label'=>false,'isadmin'=>false,'class'=>'form-control'))}}
				</div>
			</div>
			
			<!--<div class="form-group clearfix">
				<p><label class="col-sm-2 control-label" for="WxActivityContent">摘要</label></p>
				<div class="col-sm-12 controls">
					{{$this->MForm->input('summary',array('rows'=>'3','div'=>false,'label'=>false,))}}
				</div>
			</div>-->
									
			<div class="form-group clearfix">
				<p class="col-sm-12">表单活动详情 <small style="color:#999;">(输入表单活动的介绍，规则等，没有可留空)</small></p>
				<div class="col-sm-12 controls">
					{{$this->MForm->ckeditor('content',array('rows'=>'3','div'=>false,'label'=>false,))}}
				</div>
			</div>
			
		</div>
	</div>
	
	
	<div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="提交"> <small>提交后，设置表单项</small></div>
	</div>
{{$this->Form->end()}}


{{$this->Html->script(array(
	'swfupload/swfupload.js',
	'swfupload/swfupload.queue.js',
	'swfupload/swfupload.cookies.js',
	'swfupload/fileprogress.js',
	'swfupload/handlers.js',
))}}


